﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Register" Title="Untitled Page" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>
<%@ Register Assembly="WebControlCaptcha" Namespace="WebControlCaptcha" TagPrefix="wcc" %>

<asp:Content ID="head" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="LeftContent" ContentPlaceHolderID="LeftContent" Runat="Server">
    <asp:ScriptManager ID="ScriptManager2" runat="server">
    </asp:ScriptManager>
    <asp:Panel CssClass="container" runat="server" DefaultButton="btnRegister">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always" ChildrenAsTriggers="true">
            <ContentTemplate>
            <table class="register-box">
                <tr>
                    <td colspan="3"><ucc:ResponseMessage ID="uccResponse" runat="server"></ucc:ResponseMessage></td>
                </tr>
                <tr>
                    <td colspan="3" 
                        class="header-text">CREATE NEW ACCOUNT</td>
                </tr>
                <tr>
                    <td colspan="3" class="subheader-text">
                        Account Information
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                            DisplayMode="SingleParagraph" />
                    </td>
                </tr>
                <tr>
                    <td class="label-text">
                        Choose Username:
                    </td>
                    <td>
                        <asp:TextBox ID="tbxUsername" runat="server" MaxLength="20" 
                            AutoPostBack="true" OnTextChanged="UserNameAvilableCheck"></asp:TextBox>
                    </td>
                    <td>
                        <ucc:FieldValidationMessage ID="fvmUsername" runat="server" FailCssClass="field-message-fail" 
                            SuccessCssClass="field-message-success" InitialCssClass="field-message-init" />
                        <asp:CustomValidator ID="cuvUsernameCheck" runat="server" Display="Dynamic" 
                            ControlToValidate="tbxUsername" CssClass="custom-validator-fail" 
                            OnServerValidate="Username_Validate">
                        </asp:CustomValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label-text">Choose Password:</td>
                    <td colspan="2">
                        <asp:TextBox ID="tbxPassword" runat="server" MaxLength="20" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="label-text">Retype Password:</td>
                    <td colspan="2">
                        <asp:TextBox ID="tbxRePassword" runat="server" MaxLength="20" TextMode="Password"></asp:TextBox>
                        <asp:CompareValidator runat="server" ErrorMessage="Passwords do not match" Text="*"
                            ControlToCompare="tbxPassword" ControlToValidate="tbxRePassword" 
                            Display="Dynamic" SetFocusOnError="true">
                        </asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td class="label-text">Email Address:</td>
                    <td>
                        <asp:TextBox ID="tbxEmail" runat="server" MaxLength="50" ></asp:TextBox>
                    </td>
                    <td>
                        Your email must be in the format: name@domain.com
                    </td>
                </tr>
                <tr>
                    <td class="label-text">Type A Secret Question</td>
                    <td colspan="2">
                        <asp:TextBox ID="tbxSecretQuestion" runat="server" MaxLength="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="label-text">Type Secret Answer</td>
                    <td colspan="2">
                        <asp:TextBox ID="tbxSecretAnswer" runat="server" MaxLength="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" class="subheader-text">
                        Image Verification
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <wcc:CaptchaControl ID="wccCaptcha" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" class="subheader-text">
                        User Agreement
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:CheckBox ID="cbxTerms" runat="server" />
                        I agree to GStriker's  <a href="#">User Agreement</a>
                    </td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td colspan="2" align="right">
                        <asp:Button ID="btnRegister" runat="server" Text="Create Account" OnClick="Register_Click" CssClass="button" />
                    </td>
                </tr>
            </table>
             </ContentTemplate>
        </asp:UpdatePanel>
    </asp:Panel>
</asp:Content>
<asp:Content ID="RightContent" ContentPlaceHolderID="RightContent" Runat="Server">
    lkjfdlkfjsdkj
</asp:Content>

